package org.wedding.center.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.wedding.center.dto.vo.AttachVo;

/**
 * 商品信息表(ProductInfo)实体类
 *
 * @author songkaiyue
 * @since 2025-05-16 10:42:50
 */
@TableName(value = "product_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ProductInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    
    /**
     * 唯一标识
     */
    @Schema(description = "唯一标识")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

     /**
     * 用户id
     */
    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private String userId;
    

     /**
     * 商品类别id
     */
    @Schema(description = "商品类别id")
    @TableField(value = "category_id")
    private String categoryId;


     /**
     * 商品主图
     */
    @Schema(description = "商品主图")
    @TableField(value = "img_url")
    private String imgUrl;


     /**
     * 商品类别名称
     */
    @Schema(description = "商品类别名称")
    @TableField(value = "category_name")
    private String categoryName;


     /**
     * 商品名称
     */
    @Schema(description = "商品名称")
    @TableField(value = "pro_name")
    private String proName;
    

     /**
     * 商品价格
     */
    @Schema(description = "商品价格")
    @TableField(value = "pro_amount")
    private BigDecimal proAmount;

     /**
     * 原价
     */
    @Schema(description = "原价")
    @TableField(value = "old_amount")
    private BigDecimal oldAmount;
    

     /**
     * 商品详情
     */
    @Schema(description = "商品详情")
    @TableField(value = "pro_details")
    private String proDetails;
    

     /**
     * 自提点
     */
    @Schema(description = "自提点")
    @TableField(value = "self_pickup")
    private String selfPickup;


     /**
     * 经度
     */
    @Schema(description = "经度")
    @TableField(value = "longitude")
    private String longitude;


     /**
     * 纬度
     */
    @Schema(description = "纬度")
    @TableField(value = "latitude")
    private String latitude;


     /**
     * 库存
     */
    @Schema(description = "库存")
    @TableField(value = "inventory")
    private Integer inventory;


     /**
     * 手机号
     */
    @Schema(description = "手机号")
    @TableField(value = "phone")
    private String phone;

     /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private String createTime;
    

     /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField(value = "update_time")
    private String updateTime;
    

     /**
     * 删除标识：0:未删除  1:已删除
     */
    @Schema(description = "删除标识：0:未删除  1:已删除")
    @TableField(value = "del_flag")
    private String delFlag;

    /**
     * 商家电话
     */
    @TableField(exist = false)
    private String merchantPhone;

    /**
     * 附件id集合
     */
    @TableField(exist = false)
    private List<String> attachIds;

    @TableField(exist = false)
    private List<AttachVo> attachInfos;


}

